package com.unissoft.ordersystem.dataaccess.common;

/**
 * 客户端发出来的分页条件
 * @author aaron
 * 
 */
public class PageView {

    private int pageSize;
    private int pageIndex;
    private int totalRecord;

    public PageView(int pageSize, int pageIndex, int totalRecord) {
        super();
        this.pageSize = pageSize;
        this.pageIndex = pageIndex;
        this.totalRecord = totalRecord;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(int totalRecord) {
        this.totalRecord = totalRecord;
    }

    @Override
    public String toString() {
        return "PageView [pageSize=" + pageSize + ", pageIndex=" + pageIndex + ", totalRecord=" + totalRecord + "]";
    }

}
